package com.task.sql.schedule.domain.qo;

import java.util.Date;

import com.task.sql.schedule.common.PageDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author donghai.liu
 * @time 2024-09-10
 */
@Data
public class SqlTaskScheduleQO extends PageDomain implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    private Long id;

    @ApiModelProperty(value = "任务编号，sql_task：id")
    private Long taskNo;

    @ApiModelProperty(value = "是否有前置依赖，0没有1有，需要反查sql_task表")
    private Integer preTask;

    @ApiModelProperty(value = "执行次数")
    private Integer num;

    @ApiModelProperty(value = "执行失败次数")
    private Integer failedNum;

    @ApiModelProperty(value = "执行状态：0未执行1执行中2执行成功3执行失败")
    private Integer execState;

    @ApiModelProperty(value = "执行描述")
    private String execDesc;

    @ApiModelProperty(value = "执行器地址，例如ip")
    private String execAddr;

    @ApiModelProperty(value = "执行器唯一编号：jvm线程id")
    private String execHandler;

    @ApiModelProperty(value = "数据是否有效，0无效1有效，默认1有效")
    private Integer yn;

    @ApiModelProperty(value = "插入日期，用于判断重复生成任务")
    private Integer insertDate;

    @ApiModelProperty(value = "插入时间")
    private Date insertTime;

    @ApiModelProperty(value = "更新用户，默认system")
    private String insertUser;

    @ApiModelProperty(value = "更新时间，默认与插入时间相同")
    private Date updateTime;

    @ApiModelProperty(value = "更新用户,默认system")
    private String updateUser;


}
